package com.google.code.netbuilder.dal.services;

import java.io.Serializable;
import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import com.google.code.netbuilder.dal.entities.Cable;
import com.google.code.netbuilder.dal.providers.ICableProvider;
/**
 * Used for Cable access from view and business logic
 * @author Sergey Kozlov
 *
 */
@ManagedBean(name = "cableService")
@SessionScoped
public class CableService implements Serializable{

	private static final long serialVersionUID = 1774895470116873878L;
	
	@EJB
	ICableProvider cp;
	
	List <Cable> cables;
	public CableService() {
		cables = cp.findAll();
	}

}
